<div class="navbar navbar-fixed-top">
    <div class="navbar-inner">
        <div class="container">
            <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>

            <a class="brand" href="{:U('Index/index')}">
                <img src="favicon.ico" class="logo" alt="logo">
                {$Think.config.title}
            </a>

            <div class="btn-group pull-right">
                <a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
                    <i class="icon-user"></i>
                    <span class="user-name">{$user.name}</span>
                    <span class="caret"></span>
                </a>
                <ul class="dropdown-menu">
                    <li>
                        <a href="{:U('Index/setting')}">
                            <i class="icon-cog"></i> 设置
                        </a>
                    </li>
                    <li>
                        <a href="{:U('Logout/index')}">
                            <i class="icon-signout"></i> 退出
                        </a>
                    </li>
                </ul>
            </div>

            <div class="nav-collapse collapse">
                <ul class="nav">
                <volist name="navs" id="nav">
                    <li <if condition="MODULE_NAME eq $nav['module']">
                            class="active"
                        </if>>
                        <a href="{$nav.url}">
                            <if condition="isset($nav['icon'])">
                            <i class="icon-{$nav.icon}"></i>
                            </if>
                            {$nav.name}
                        </a>
                    </li>
                </volist>
                </ul>
            </div>
        </div>
    </div>
</div>
